from langchain_community.document_loaders import TextLoader

text = TextLoader("d://1.txt",encoding="utf-8").load()
print(text)
print(text[0])
print(text[0].page_content)
print(text[0].metadata)